package com.tronsis.distribution.eventbus;

/**
 * eventbus消息类
 */
public class EventMessage {

    private int tag;
    private Object params;

    public EventMessage(int tag, Object params) {
        this.tag = tag;
        this.params = params;
    }

    public EventMessage(int tag) {
        this.tag = tag;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public Object getParams() {
        return params;
    }

    public void setParams(Object params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "EventMessage{" +
                "tag=" + tag +
                ", params=" + params +
                '}';
    }
}
